<?php

namespace Configuration;

class Parameters extends \Common\Configuration
{

    public $configuration = [];

    public function __construct()
    {
        $this->configuration = [
            "env" => [
              "type"  =>  "prod",
              "timer" => false,
              "admin_api_token" => "",
              "licence_key" => "",
              "standalone" => true,
              "server_name" => "http://localhost:8000/",
              "internal_server_name" => "http://nginx/",
              "secret" => "",
            ],
            "websocket" => [
                "host" => "websockets",
                "port" => "8080",
                "pusher_public" => "-----BEGIN PUBLIC KEY-----\nMIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgG65NWZFnj+9op68VRBN/WtG9eRp\nMVyQiVAWSsShxIK0xLUDac4B9wADvnqZqyylFZpRsVLeXEo5FJMmmPG9OYRed5un\n0ulXWTEBBi5ON2ku91EFx1+02sd0Cbkc0hwy2A3mTPU5ykF2MqH9mUf2SQ5yhhGh\np3UZN60QZtJwmWDbAgMBAAE=\n-----END PUBLIC KEY-----",
                "pusher_private" => "-----BEGIN RSA PRIVATE KEY-----\nMIICWwIBAAKBgG65NWZFnj+9op68VRBN/WtG9eRpMVyQiVAWSsShxIK0xLUDac4B\n9wADvnqZqyylFZpRsVLeXEo5FJMmmPG9OYRed5un0ulXWTEBBi5ON2ku91EFx1+0\n2sd0Cbkc0hwy2A3mTPU5ykF2MqH9mUf2SQ5yhhGhp3UZN60QZtJwmWDbAgMBAAEC\ngYBWCyWdOYK1w/eI5ZAxIHpMEJPrkXejmEqs6vXlglTEwhePF3z0c4BwCXjPq3Vj\nN1LnXo6veE89+serZrY6PbNgw9KIH8HuSRnYAEHVlv0KmLQvC40GWi7iGdCoN3NK\n0ZEcFnekpMx2XYGmxWTy7/n2PT1f+dlzLG8EUK0B768vmQJBAN0xS+RE8nHu4RWo\nRlRV0kYwwOvfETYLSKzC7jXgcnV4dI65xnjQjuxil0oH7YQewhmGjEtTANMXetG9\nW0JV5tUCQQCAJa8kbAeUTOA5AjOXm58IlxKiKIRYJlQS6wlploOmGcGMCLBkjPdR\nSdR9QG7vTZbFQ1qTI78Llwla2XyV+2DvAkAVbodZ8MxE+c5ZWNqnpUEgh+zJbe2u\n/Nzn0GNgWQT+GNPCWIHAhwSyJsNd6vK6kHhiHMVPLxWvXmEKHXzQKp6ZAkB1YA74\nEWsvzuphzT5sU0Jrn9SVav8tro27dkT8zbxv24+IMD1BHE07y6AxyV7TGgJLVNIV\ni9xlRUZwTFztE39JAkEAh1mQwoMuBaKwSftCooUHHHxUel1J9e99quJtES0Al6bu\nQp6BEGio7qt0MNDLr0WPxNQMmPcSazWOsoOCQBvEMg==\n-----END RSA PRIVATE KEY-----",
            ],
            "db" => [
                "driver" => "pdo_cassandra",
                "host" => "scylladb",
                "port" => 9042,
                "dbname" => "twake",
                "user" => "root",
                "password" => "root",
                "encryption_key" => "c9a17eab88ab63bb3e90c027196a89776651a7c06651a7c0"
            ],
            "es" => [
              "host" => "elasticsearch:9200"
            ],
            "queues" => [
                "sqs" => [
                    "use" => false,
                    "profile" => "default",
                    "version" => "2012-11-05",
                    'region' => 'us-west-2',
                    "credentials" => [
                        "key" => "",
                        "secret" => ""
                    ]

                ],
                "rabbitmq" => [
                    "use" => true,
                    "host" => "rabbitmq",
                    "port" => 5672,
                    "username" => "admin",
                    "password" => "admin"
                ]
            ],
            "storage" => [
              "drive_previews_tmp_folder" => "/tmp/",
              "drive_tmp_folder" => "/tmp/",
              "drive_salt" => "SecretPassword",
              "openstack" => [
                  "use" => false,
                  "project_id" => "",
                  "auth_url" => "https//auth.cloud.ovh.net/v2.0",
                  "buckets_prefix" => "",
                  "buckets" => [
                      "fr" => [
                          "public" => "",
                          "private" => "",
                          "region" => "SBG5"
                      ],
                      "user" => [
                          "id" => "",
                          "password" => ""
                      ]
                  ],
              ],
              "S3" => [
                  "base_url" => "http//127.0.0.1:9000",
                  "use" => false,
                  "version" => "latest",
                  "buckets_prefix" => "dev.",
                  "buckets" => [
                      "fr" => "eu-west-3"
                  ],
                  "credentials" => [
                      "key" => "",
                      "secret" => ""
                  ]
              ],
              "local" => [
                  "use" => true,
                  "location" => "../drive/",
                  "preview_location" => "../web/medias/",
                  "preview_public_path" => "/medias/"
              ],
            ],
            "mail" => [
                "sender" => [
                    "host" => "",
                    "port" => "",
                    "username" => "",
                    "password" => "",
                    "auth_mode" => "plain"
                ],
                "template_dir" => "/src/Twake/Core/Resources/views/",
                "twake_domain_url" => "https://twakeapp.com/",
                "from" => "noreply@twakeapp.com",
                "from_name" => "Twake",
                "twake_address" => "Twake, 54000 Nancy, France",
                "dkim" => [
                    "private_key" => "",
                    "domain_name" => '',
                    "selector" => ''
                ],
                "mailjet"=> [
                  "contact_list_subscribe"=> false,
                  "contact_list_newsletter"=> false
                ]
            ],
            "push_notifications" => [
                "apns_certificate" => __DIR__ . "/certs/apns_prod.pem",
                "firebase_api_key" => "KEY",
            ],

            //Defaults values for all clients but editable in database
            "defaults" => [
              "applications" => [
                "twake_drive" => [ "default" => true ], //False to not install
                "twake_calendar" => [ "default" => true ],
                "twake_tasks" => [ "default" => true ],
                "connectors" => [
                  "jitsi" => [ "default" => true ],
                ]
              ],
              "connectors" => [
              ],
              "branding" => [
                "name" => "Twake",
                "enable_newsletter" => false,
                /*
                "header" => [
                  "logo" => 'https://openpaas.linagora.com/images/white-logo.svg',
                  "apps" => [
                    [
                      "name"=> 'Accueil',
                      "url"=> 'https://openpaas.linagora.com/',
                      "icon"=> 'https://openpaas.linagora.com/images/application-menu/home-icon.svg',
                    ],
                    [
                      "name"=> 'Inbox',
                      "url"=> 'https://openpaas.linagora.com/#/unifiedinbox/inbox',
                      "icon"=> 'https://openpaas.linagora.com/unifiedinbox/images/inbox-icon.svg',
                    ],
                    [
                      "name"=> 'Calendrier',
                      "url"=> 'https://openpaas.linagora.com/#/calendar',
                      "icon"=> 'https://openpaas.linagora.com/calendar/images/calendar-icon.svg',
                    ],
                    [
                      "name"=> 'Contacts',
                      "url"=> 'https://openpaas.linagora.com/#/contact/addressbooks/',
                      "icon"=> 'https://openpaas.linagora.com/contact/images/contacts-icon.svg',
                    ],
                  ],
                ],
                "style" => [
                  "color" => '#2196F3',
                  "default_border_radius" => '2',
                ],
                "link" => "https://open-paas.org/",
                "logo" => "https://open-paas.org/wp-content/uploads/2019/10/openpaas.png"
                */
              ],
              "auth" => [
                  "internal" => [
                      "use" => true,
                      "disable_account_creation" => false,
                      "disable_email_verification" => true
                  ],
                  "openid" => [
                      "use" => false,
                      "provider_uri" => 'https://auth0.com',
                      "client_id" => '',
                      "client_secret" => '',
                      //"disable_logout_redirect" => false
                      "provider_config" => [
                        //token_endpoint
                        //token_endpoint_auth_methods_supported
                        //userinfo_endpoint
                        //end_session_endpoint
                        //authorization_endpoint
                      ]
                  ],
                  "cas" => [
                      "use" => false,
                      "base_url" => '',
                      "email_key" => '',
                      "lastname_key" => '',
                      "firstname_key" => ''
                  ]
              ]
            ],
        ];
    }

}
